var typeArray = new Array();
typeArray["all"] = "所有动态";
typeArray["mini"] = "迷你博客";
typeArray["blogs"] = "日志";
typeArray["blogrevert"] = "日志评论";
typeArray["addphoto"] = "相片上传";
typeArray["photorevert"] = "相片评论";
typeArray["groups"] = "加入群组";
typeArray["groups_topics"] = "发表话题";
typeArray["editinfo"] = "信息修改";
typeArray["guest"] = "留言";
typeArray["share"] = "分享";
$(document).ready(function(){
	var type = $("#typename").text()=="" ? "all" : $("#typename").text();
	$("#typename").html(typeArray[type]);
	$("#"+type).css("color","red");
	$("#"+type).css("fontWeight","bold");
	$(".feedaction").each(function(){
		$(this).bind("click",function(){
			return check(this);
		});
	});
	
	$(".reverthello").click(function(){
		var url = $(this).attr("href");
		var obj = this;
		$.get(url,{ajax:1},function(data){
			if("success" == data){
				msg(obj,"回复招呼成功");
				$(obj).parent().parent().fadeOut(3000);
			}else{
				msg(obj,"操作失败，你可以重试");
			}
			
		});
		return false;
	});
	$(".ignorehello").click(function(){
		var url = $(this).attr("href");
		$.get(url,{ajax:1},function(data){
			if("success" == data){
				msg($(".ignorehello"),"操作成功");
				$(".ignorehello").parent().parent().fadeOut(3000);
			}else{
				msg($(".ignorehello"),"操作失败，你可以重试");
			}
			
		});
		return false;
	});
});